package com.yzk.train.business.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class TrainCarriageSaveReq {

    // id
    private Long id;

    // 车次编号
    @NotBlank(message = "【车次编号】不能为空")
    private String trainCode;

    // 厢号
    @NotNull(message = "【厢号】不能为空")
    private Integer index;

    // 座位类型|枚举[SeatTypeEnum]
    @NotBlank(message = "【座位类型】不能为空")
    private String seatType;

    // 座位数
    private Integer seatCount;

    // 排数
    @NotNull(message = "【排数】不能为空")
    private Integer rowCount;

    // 列数
    private Integer colCount;

}
